Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(#1687) no-op column expansion on Snowflake + BQ #1690

Merged
merged 3 commits into from
Aug 20, 2019

Conversation

drewbanin
Copy link
Contributor

Fixes #1687

Fully no-op column expansion on Snowflake (and avoid running introspective queries on BigQuery) - these databases do not require column expansion because of their intelligent string types.

@cla-bot cla-bot bot added the cla:yes label Aug 19, 2019
Copy link
Member

@cmcarthur cmcarthur left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@drewbanin the tests around column expansion failed.

Completed with 1 error and 0 warnings:

Database Error in model incremental (models/incremental.sql)
  100078 (22000): 018e4fb1-038b-d1a1-0000-0e690337521a: String 'Amerisource Bergen' is too long and would be truncated
  compiled SQL at target/compiled/test/incremental.sql

https://circleci.com/gh/fishtown-analytics/dbt/15916

@drewbanin
Copy link
Contributor Author

@cmcarthur turns out column expansion is still necessary on Snowflake, but we can use an alter table ... alter column statement instead of the convoluted flow required on Redshift. Can you give this one another look?

Copy link
Member

@cmcarthur cmcarthur left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks great!

@drewbanin drewbanin merged commit ea898e2 into dev/0.14.1 Aug 20, 2019
@drewbanin drewbanin deleted the fix/no-col-expansion-on-snowflake branch August 20, 2019 15:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

alter-table statements during incremental run leads to potential errors on Snowflake
2 participants